import request from "@/utils/request";

// 本地环境
export const host = "http://172.24.7.16:9078"

// 统计图
export function get_chart() {
  return request({
    url: host + "/api/charts/charts_view",
    method: "post"
  })
}

// 用户录入接口统计图
export function get_user_chart() {
  return request({
    url: host + "/api/charts/charts_user_count",
    method: "post"
  })
}

// 接口执行统计图
export function get_api_chart() {
  return request({
    url: host + "/api/charts/api_run_count",
    method: "post"
  })
}

// app自动化执行统计图
export function app_ui_run_count() {
  return request({
    url: host + "/api/charts/app_ui_run_count",
    method: "post"
  })
}

// app自动化脚本新增统计图
export function app_script_user() {
  return request({
    url: host + "/api/charts/app_script_user",
    method: "post"
  })
}
